package com.version1_4.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by reeveslee on 16/4/27.
 */
public interface TopicDao {

    public List<Map<String, Object>> getBanner();

    public List<Map<String, Object>> topicPage(int lastId);

    public Map<String, Object> topicInfo(int topicId);

    public boolean follow(int topicId, int userId);

    public Map<String, Object> sponsor(int userId);

    public Map<String, Object> invite(int topicId);

    public List<Map<String, Object>> feeds(int topicId, int lastId);

    public List<Map<String, Object>> newFeeds(int topicId, int lastId);

    public boolean hasPraised(int userId, int feedId);

    public boolean addFollow(int userId, int topicId);

    public boolean removeFollow(int userId, int topicId);

    public List<Map<String, Object>> followTopicId(int userId);

    public int feedCount(int topicId);

    public int userCount(int topicId);

    public List<Map<String, Object>> search(String key);

    public List<Map<String, Object>> tag(String name, int lastId);

    public Map<String, Object> tagInfo(String name);

    public List<Map<String, Object>> recomTag();
}
